package com.wang.lottery.domain.rule.service.engine;

import com.wang.lottery.domain.rule.service.logic.LogicFilter;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author wjh
 * @create 2023-11-11 17:48
 * 规则配置
 */
public class EngineConfig {
    @Resource
    private LogicFilter userAgeFilter;
    @Resource
    private LogicFilter userGenderFilter;
    
    protected Map<String , LogicFilter> filterMap = new ConcurrentHashMap<>();
    
    @PostConstruct
    public void init(){
        filterMap.put("userAge",userAgeFilter);
        filterMap.put("userGender",userGenderFilter);
    }
}
